package com.wnxy.sddfp.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.web.client.RestTemplate;

/**
 * @author yellow Docter
 * @date 2024 -04-12
 * @desc
 */
@EnableFeignClients(
        "com.wnxy.sddfp.client.bank"
)
@MapperScan("com.wnxy.sddfp.system.mapper")
@ComponentScan({
        "com.wnxy.sddfp.common",
        "com.wnxy.sddfp.system"
})
@SpringBootApplication
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }

    /**
     *  restTemplate 远程调用模板
     * @return
     */
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
